<?php
define('MINI_RUN', true);
require 'mini.php';
Mini::checkLogin();
?>
<!DOCTYPE html>
<html>
<head>
<title>栏目管理--<?=Mini::NAME?>后台管理系统</title>
<?=Mini::ADMIN_CSS?>
</head>
<body>
<p class="msg">&nbsp;</p>
<form>
网站首页：<input id="gethome" type="button" value="读取" /><br />
<input name="op" type="hidden" value="sethome" />
<textarea name="hometext" id="mini" rows="25" cols="100"></textarea><br />
<input id="savebtn" type="button" value="保存" />
</form>
<?=Mini::JQUERY_JS?>
<?=Mini::ADMIN_JS?>
<script type="text/javascript">
$(function(){
	$("#gethome").click(function(){
		var result=getAction(<?=Mini::AJAX_GET?>,{op:"gethome"},"获取首页数据");
		if(result!=null){			
			$("#mini").val(result);
			alert("获取首页数据成功！");
		}		
	});
	$("#savebtn").click(function(){
		setAction(<?=Mini::AJAX_SET?>,$("form").serialize(),"保存首页数据");
	});
});
</script>
</body>
</html>